package com.jayqqaa12.robot.model;

import com.jayqqaa12.jbase.jfinal.ext.model.Model;
import com.jfinal.ext.plugin.tablebind.TableBind;

@TableBind(tableName = "sina_user")
public class User extends Model<User> {
	public final static User dao = new User();

	public void save(String uid ) {

		User u = findFirstByWhere("where uid=?", uid);

		if (u == null) {
			new User().setDate("date").set("uid", uid).save();
		} else u.setDate("date").update();

	}

}
